//
// Created by summerday on 2021/6/5.
//

#ifndef C_PROJECT_STACK_H
#define C_PROJECT_STACK_H

#include "cstdio"
#include "iostream"

using namespace std;

#define MaxSize 5

typedef struct {
    int data[MaxSize];
    int top;
} SqStack;

void initStack(SqStack &s);
bool push(SqStack &s, int x);
bool pop(SqStack &s, int &x);
bool getTop(SqStack s, int &x);


#endif //C_PROJECT_STACK_H
